package com.cugmarket.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Accessors(chain = true)
@Data
@TableName("user_follows")
public class UserFollows implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
   * 关注标识
   */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    /**
   * 用户标识
   */
    @TableField("user_id")
    private String userId;

    /**
   * 被关注用户标识
   */
    @TableField("followed_user_id")
    private String followedUserId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
